﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
   public class DataContext
    {
        public DataContext()
        {
              DB= db;
        }
        SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
        {
            ConnectionString = "Server=192.168.209.1;User ID=sa;Database=PMS;Password=0000;",//连接符字串
           // ConnectionString = "Server=.;User ID=sa;Database=PMS;Password=0000;",//连接符字串

            DbType = DbType.SqlServer,
            IsAutoCloseConnection = true,
            
        });

        public SqlSugarClient DB { get; set; }
    }
}
